﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Apewer.AspNetBridge
{

    /// <summary></summary>
    public abstract class HttpContent : IDisposable
    {

        HttpContentHeaders _headers = new HttpContentHeaders();
        Stream _stream = null;

        /// <summary></summary>
        public Stream Stream
        {
            get { return _stream; }
            set { _stream = value; }
        }

        /// <summary></summary>
        public HttpContentHeaders Headers { get => _headers; }

        /// <summary></summary>
        public void Dispose() => RuntimeUtility.Dispose(Stream);

    }

}
